package test.org.offsync.async

import java.nio.file.Paths
import org.junit.runner.RunWith
import org.specs2._
import org.offsync.util.DisposeState
import org.offsync.async.AsyncFile
import scala.collection.{mutable => mutable}

@RunWith(classOf[org.specs2.runner.JUnitRunner])
class SpecAsyncFile extends org.specs2.mutable.SpecificationWithJUnit {
  "New AsyncService object can dispose" should {
    val file = AsyncFile.open(Paths.get("D:\\moo.txt"))
    println(file.underlying)
    file.underlying.close()
    1 must_== 2
  }
}
